﻿using System.Security.Claims;

namespace Soul.IdentityServer.Validation
{
    public class TokenGrantContext
    {
        public Client Client { get; }
        public Resources Resources { get; }
        public ClaimsPrincipal Subject { get; }
        public OpenIdConnectParameters Parameters { get; }

        public TokenGrantContext(Client client, Resources resources, ClaimsPrincipal subject, OpenIdConnectParameters parameters)
        {
            Client = client;
            Resources = resources;
            Subject = subject;
            Parameters = parameters;
        }
    }
}
